package com.cc.controller.app;

import com.cc.base.PageResponse;
import com.cc.base.ResponseResult;
import com.cc.pojo.dto.UserPageDto;
import com.cc.pojo.vo.UserVo;
import com.cc.service.UserService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhanghaibin
 */
@RestController
@RequestMapping("/app/user/")
@Slf4j
@Tag(name = "用户端用户管理")
public class UserController {
    @Resource
    private UserService adminUserService;



    /**
     * 用户信息分页查询
     *
     * @return
     */
    @PostMapping("/list")
    @Operation(summary = "用户信息分页查询")
    public  ResponseResult<PageResponse<UserVo>> selectUserList(@RequestBody UserPageDto userPageDto) {
        return adminUserService.selectUserList(userPageDto);
    }

}
